home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / steppenw.swf / scripts / DefineButton2_1348 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-04-12  |  894 b   |  46 lines

  1. on(release){
  2.    tellTarget("/")
  3.    {
  4.       gotoAndStop(eval("/Variables:EtatActif"));
  5.    }
  6.    if(getProperty("_root.MegEscalier", _currentframe) != 1)
  7.    {
  8.       tellTarget("_root.MegEscalier")
  9.       {
  10.          play();
  11.       }
  12.    }
  13.    if(eval("/Variables:LaserArret") != true)
  14.    {
  15.       tellTarget("_root.Laser1Devant")
  16.       {
  17.          play();
  18.       }
  19.       tellTarget("_root.Laser1Derriere")
  20.       {
  21.          play();
  22.       }
  23.       tellTarget("_root.Laser2Devant")
  24.       {
  25.          play();
  26.       }
  27.       tellTarget("_root.Laser2Derriere")
  28.       {
  29.          play();
  30.       }
  31.       tellTarget("_root.Laser3Devant")
  32.       {
  33.          play();
  34.       }
  35.       tellTarget("_root.Laser3Derriere")
  36.       {
  37.          play();
  38.       }
  39.    }
  40.    tellTarget("_root.Bureau.Gardien")
  41.    {
  42.       gotoAndPlay(eval("/Variables:PositionGardien"));
  43.    }
  44.    gotoAndStop(1);
  45. }
  46.